﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <!--#include virtual="././_header_base.html"-->
    <body>
        <div id="wrap">
            <!--#include virtual="././_header.html"-->

			<!-- (s) Body 영역 (s) -->
            <div class="container" style="width:100%">
                <!--#include virtual="././_left.html"-->
                
                <div class="col-sm-8" >


<!-- (s) 페이지 Html (s) -->

<script src="/Scripts/Chart.js"></script>
<script type="text/javascript">
    
    $(document).ready(function () {
        var resultData = {"StartDate":"2014-06-29","EndDate":"2014-07-09","RecruitInfoSeriesListForChart":[{"AgentType":"S","JobType":"DEV-WEB-NET","RecruitCounts":[206,191,213,227,226,214,211,202,204,209]},{"AgentType":"S","JobType":"DEV-WEB-JAVA","RecruitCounts":[955,826,887,919,938,890,880,869,896,930]}],"RecruitInfoListForGrid":[],"XAxisList":["2014-06-29","2014-06-30","2014-07-01","2014-07-02","2014-07-03","2014-07-04","2014-07-05","2014-07-06","2014-07-07","2014-07-08","2014-07-09"]};

        //$("#canvas").css("width", $("#canvas").parent().css("width").replace("px", ""));

        //for (var i = 0; i < resultData.XAxisList.length; i++) {
        //    if (i % 3 != 0)
        //        resultData.XAxisList[i] = "";
        //}

        var lineChartData = {
            labels: resultData.XAxisList,
            datasets: [
                {
                    fillColor: "rgba(220,220,220,0.0)",
                    strokeColor: "rgba(000,000,255,1)",
                    pointColor: "rgba(000,000,255,1)",
                    pointStrokeColor: "#fff",
                    data: resultData.RecruitInfoSeriesListForChart[0].RecruitCounts
                },
                {
                    fillColor: "rgba(151,187,205,0.0)",
                    strokeColor: "rgba(255,000,000,1)",
                    pointColor: "rgba(255,000,000,1)",
                    pointStrokeColor: "#fff",
                    data: resultData.RecruitInfoSeriesListForChart[1].RecruitCounts
                }
            ]
        }

        var lineChartOption = {
            scaleOverlay: true,
            scaleOverride:true,
            //** Required if scaleOverride is true **
            //Number - The number of steps in a hard coded scale
            scaleSteps : 5,
	        //Number - The value jump in the hard coded scale
            scaleStepWidth : 200,
            //Number - The scale starting value

        }

        var myLine = new Chart(document.getElementById("canvas").getContext("2d")).Line(lineChartData, lineChartOption);
    });

</script>

<div class="bs-callout bs-callout-info title-area">
    <div>
        <h3>국내 구인 추세</h3>
        <p />
        <p>
            자동 웹사이트 수집을 통해 매일 특정 영역의 구인 현황을 제공해 드리고 있습니다. <br /> 
            위 정보의 수집은 <b>'방문자수 1위' 사람중심 취업사이트 <a href="http://www.saramin.co.kr/zf_user/" target="_blank">사람인</a> </b>을 기반으로 이뤄지고 있습니다. 
        </p>
    </div>
</div>

<div class="row" >
    <span class="h3 glyphicon glyphicon-stats" style="padding-left:10px">&nbsp;Graph</span>
</div>

<div class="row">
    <div class="col-sm-10">
        <canvas id="canvas" height="350" width="1000" style="border:1px solid #000000; margin:20px; padding:10px; border-radius:10px" ></canvas>
    </div>
    <div class="col-sm-2" style="padding:35px">
        <span style="color:red">■</span> Java 웹 개발 <br /><span style="color:blue">■</span> .Net 웹 개발
    </div>
</div>

<div class="row" >
    <span class="h3 glyphicon glyphicon-stats" style="padding-left:10px">&nbsp;Data</span>
</div>

<div class="row">
    <table class="table table-striped table-bordered">
        <thead>
            <tr>
                <th class="col-md-3 text-center">날짜</th>
                <th class="col-md-3 text-center">Java 웹 개발</th>
                <th class="col-md-3 text-center">.Net 웹 개발</th>
                <th class="col-md-3 text-center">합계(Java + .Net)</th>
            </tr>
        </thead>
        <tbody>
                <tr>
                    <td class="col-md-3 text-center">2014-06-30</td>
                    <td class="col-md-3 text-right">955</td>
                    <td class="col-md-3 text-right">206</td>
                    <td class="col-md-3 text-right">1,161</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-01</td>
                    <td class="col-md-3 text-right">826</td>
                    <td class="col-md-3 text-right">191</td>
                    <td class="col-md-3 text-right">1,017</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-02</td>
                    <td class="col-md-3 text-right">887</td>
                    <td class="col-md-3 text-right">213</td>
                    <td class="col-md-3 text-right">1,100</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-03</td>
                    <td class="col-md-3 text-right">919</td>
                    <td class="col-md-3 text-right">227</td>
                    <td class="col-md-3 text-right">1,146</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-04</td>
                    <td class="col-md-3 text-right">938</td>
                    <td class="col-md-3 text-right">226</td>
                    <td class="col-md-3 text-right">1,164</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-05</td>
                    <td class="col-md-3 text-right">890</td>
                    <td class="col-md-3 text-right">214</td>
                    <td class="col-md-3 text-right">1,104</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-06</td>
                    <td class="col-md-3 text-right">880</td>
                    <td class="col-md-3 text-right">211</td>
                    <td class="col-md-3 text-right">1,091</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-07</td>
                    <td class="col-md-3 text-right">869</td>
                    <td class="col-md-3 text-right">202</td>
                    <td class="col-md-3 text-right">1,071</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-08</td>
                    <td class="col-md-3 text-right">896</td>
                    <td class="col-md-3 text-right">204</td>
                    <td class="col-md-3 text-right">1,100</td>
                </tr>   
                <tr>
                    <td class="col-md-3 text-center">2014-07-09</td>
                    <td class="col-md-3 text-right">930</td>
                    <td class="col-md-3 text-right">209</td>
                    <td class="col-md-3 text-right">1,139</td>
                </tr>   
        </tbody>
    </table>
</div>
<p />

<!-- (e) 페이지 Html (e) -->

                </div>
                
                <!--#include virtual="././_right_board.html"-->
            </div>
            <!-- (e) Body 영역 (e) -->

        </div>
		<!--#include virtual="././_footer.html"-->
    </body>
</html>
